<style lang="scss">
.customUpfile {
    .el-upload-list {
        display: none;
    }
}
</style>

<template>
<el-upload class="customUpfile" action="https://jsonplaceholder.typicode.com/posts/" :http-request="request">
	<el-button size="small" type="primary">点击上传</el-button>
</el-upload>
</template>

<script>
export default {
	props: ['fileName'],
	data() {
		return {}
	},
	methods: {
		request(e) {
			this.$store.dispatch('registerPage_upfile', {
				'file': e.file,
				'fileName': this.fileName
			})
		}
	},
	mounted: function() {},
}
</script>
